package java2;
import java.math.BigDecimal;
import java.util.Scanner;
public class java2_5 {
	public static void main(String[] args)
	{
		Scanner input=new Scanner(System.in);
		for(int i=0;;i++)
		{
			BigDecimal a1=new BigDecimal(input.next());
		    BigDecimal a2=new BigDecimal(input.next());
		    System.out.println(a1.add(a2));
		    System.out.println(a1.multiply(a2));
		}
	}

	
}
